﻿//-----------------------------------------------------------------------
// <copyright file="AboutScreen.cs" company="In The Hand Ltd">
//     Copyright © 2014-15 In The Hand Ltd. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Net;
#if !WINDOWS_PHONE
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Popups;
#else
using System.Windows;
using System.Windows.Controls;
using InTheHand.UI.Popups;
#endif
namespace InTheHand.UI.ApplicationSettings
{
    public sealed class AboutScreen
    {
        [CLSCompliant(false)]
        public static void ShowAbout(IUICommand command)
        {
#if WINDOWS_PHONE_APP
            AboutDialog dialog = new AboutDialog();
            dialog.ShowAsync();
#elif !WINDOWS_PHONE
            AboutFlyout flyout = new AboutFlyout();
            flyout.ShowIndependent();
#else
            Frame f = Application.Current.RootVisual as Frame;
            f.Navigate(new Uri("/InTheHand.UI.ApplicationSettings.About;component/AboutPage.xaml", UriKind.Relative));
#endif
        }
    }
}
